<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"

>
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Indústria 2.0</title>
<link rel="stylesheet" type="text/css" href="css/style.css"></link>
</h:head>
<h:body onload="login.show()">

	<p:growl id="growl" showDetail="true" showSummary="false" life="3000"/>
	<p:dialog header="#{lang.logindeusuario}" widgetVar="login" showEffect="fade" resizable="false" closable="false" draggable="false" width="350">
		<h:form>
		 
			<h:panelGrid columns="2" style="margin-bottom:15px;">
				<h:outputText value="#{lang.email}"/>
				<p:inputText id="email" value="#{loginBean.usuario.email}" required="true" requiredMessage="#{lang.obrigatorio}" validator="validadores.Email" >
				</p:inputText>
				<h:outputText value="#{lang.senha}"/>
				<p:password id="senha" value="#{loginBean.usuario.senha}" feedback="false"/>
			</h:panelGrid>
			<p:commandButton value="#{lang.login}" actionListener="#{loginBean.login}" update="growl"/>	
		</h:form>
	</p:dialog>



</h:body>
</html>